package com.atguigu.springcloud.controller;

import com.atguigu.springcloud.service.IPaymentService;
import lombok.AllArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author : wenchao.long
 * @date : Created in 2020/12/25 8:12 周五
 * @description :
 */
@RestController
@RequestMapping("/payment")
@AllArgsConstructor
public class PaymentController {

    private final IPaymentService paymentService;

    @GetMapping("/nacos/{id}")
    public String getPayment(@PathVariable("id") Integer id) {
        return paymentService.nacosId(id);
    }

}
